package cn.trdu._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;

public class TestCalculator {
    public static void main(String[] args) {



        ApplicationContext context=new AnnotationConfigApplicationContext
                ("cn.trdu._07springaop");
        CalculatorImpl bean =context.getBean(CalculatorImpl.class);
        int result =bean.add(10,20);
    }
}
